﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ConfirmRMACode.aspx.cs" Inherits="WXYW.DistributeRMAForm" %>

<asp:Content ID="content2" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    RMA服务申请--分配RMA单号-->收货确认
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
    <img src="image/operateicon/print.gif" alt="" />
    <a onclick="preview()">打印</a>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <script type="text/javascript" language="jscript">
        function ConfirmAssignToStation() {
            var w = document.getElementById('ctl00_RightContentPlaceHolder_serviceStationDropDownList').selectedIndex;
            var selected_text = document.getElementById('ctl00_RightContentPlaceHolder_serviceStationDropDownList').options[w].text;

            return confirm('确定要将此单派给' + selected_text + '吗?');
        }
    </script>
    <div class="buttonHeader" align="right">
        <img src="image/operateicon/back_back.gif" alt="" />
        <asp:LinkButton ID="backLinkButton" runat="server" OnClick="backLinkButton_Click">返回</asp:LinkButton>
        <img src="image/operateicon/check.gif" alt="" />
        <asp:LinkButton ID="submitLinkButton" runat="server" OnClick="updateLinkButton_Click" OnClientClick="javascript:return ConfirmAssignToStation()">更新</asp:LinkButton>
    </div>
    <!--startprint-->
    <table style="width: 100%">
        <tr style="height: 25px">
            <td style="width: 10%">
                <b>流水号:</b>
            </td>
            <td style="width: 30%">
                <asp:Label ID="runningNumberLabel" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td style="width: 10%">
            </td>
            <td style="width: 10%">
                <b>当前状态:</b>
            </td>
            <td style="width: 30%">
                <asp:Label ID="statusLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td style="width: 10%">
            </td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <b>用户信息</b>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                申请人：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierNameTxtBox" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                客户名称：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applyCompanyNameTxtBox" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <%--<td>
                收货日期：
            </td>
            <td>
                <asp:Label ID="receiveLabel" runat="server" Text="" Width="120"></asp:Label>
            </td>--%>
        </tr>
        <tr style="height: 25px">
            <td>
                联系电话：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierPhoneTxtBox" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                联系传真：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierFaxTxtBox" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                电子邮箱：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierEmailTxtBox" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                通讯地址：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="mailAddressTxtBox" Width="100%" runat="server" Text=""></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                代填人：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="agentLabel" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                代填人电话：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="agentPhoneLabel" Width="100%" runat="server" Text=""></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="orginRMANoLbl" runat="server" Text="原始维修单RMA号：" Visible="false"></asp:Label>
            </td>
            <td colspan="5">
                <asp:LinkButton ID="originRMANoBtn" runat="server"
                       OnClick="originRMANoBtn_Click" Visible="false"></asp:LinkButton>&nbsp&nbsp
            </td>
        </tr>
        <tr style="height: 10px;">
            <td colspan="6">
            </td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <b>分派维修站</b>
            </td>
        </tr>
        <tr style="height: 10px;">
            <td colspan="6">
            </td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="6" valign="middle">
                请选择您要将此单分配到哪个平台:<asp:DropDownList ID="serviceStationDropDownList" runat="server"
                    Width="120px" Height="20px" >
                </asp:DropDownList>
            </td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <b>产品信息</b>
            </td>
        </tr>
        <tr style="height: 10px;">
            <td colspan="6">
            </td>
        </tr>
        <tr>
            <td colspan="6">
                <asp:GridView ID="ProductGridView" runat="server" AutoGenerateColumns="False" DataKeyNames="ApplicationProductID"
                    OnRowCancelingEdit="productGridView_RowCancelingEdit" OnRowEditing="productGridView_RowEditing"
                    OnRowUpdating="productGridView_RowUpdating" Width="100%" CssClass="tableList"
                    OnRowDataBound="ProductGridView_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" Width="3%" />
                            <ItemStyle Wrap="False" Width="3%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="产品型号">
                            <ItemTemplate>
                                <%#Eval("ProductType.ProductTypeName")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:DropDownList ID="typeDropDownList" runat="server">
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <ControlStyle Width="95%" />
                            <HeaderStyle Wrap="False" Width="13%" />
                            <ItemStyle Wrap="False" Width="13%" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="序列号" DataField="ProductSerialNumber">
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="10%" />
                            <ControlStyle Width="90%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="版本号">
                            <EditItemTemplate>
                                <asp:DropDownList ID="VersionNumberDDL" runat="server">
                                    <asp:ListItem Text="V1.0" Value="V1.0"></asp:ListItem>
                                    <asp:ListItem Text="V1.2" Value="V1.2"></asp:ListItem>
                                    <asp:ListItem Text="V2.0" Value="V2.0"></asp:ListItem>
                                    <asp:ListItem Text="V2.1" Value="V2.1"></asp:ListItem>
                                    <asp:ListItem Text="V2.2" Value="V2.2"></asp:ListItem>
                                    <asp:ListItem Text="V3.0" Value="V3.0"></asp:ListItem>
                                    <asp:ListItem Text="V3.5" Value="V3.5"></asp:ListItem>
                                    <asp:ListItem Text="V4.0" Value="V4.0"></asp:ListItem>
                                    <asp:ListItem Text="V5.0" Value="V5.0"></asp:ListItem>
                                    <asp:ListItem Text="V6.0" Value="V6.0"></asp:ListItem>
                                    <asp:ListItem Text="V7.0" Value="V7.0"></asp:ListItem>
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <%#Eval("ProductVersionNumber")%>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" Width="7%" />
                            <ItemStyle Wrap="False" Width="7%" />
                            <ControlStyle Width="90%" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="数量" DataField="ProductCount">
                            <HeaderStyle Width="4%" Wrap="False" />
                            <ItemStyle Width="4%" />
                            <ControlStyle Width="80%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="故障类型">
                            <ItemTemplate>
                                <%#Eval("ProblemType.Name")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:DropDownList ID="problemTypeDropDownList" runat="server">
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <HeaderStyle Wrap="False" Width="9%" />
                            <ItemStyle Wrap="False" Width="9%" />
                            <ControlStyle Width="95%" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="故障现象描述" DataField="ProductProblemDescription">
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="10%" />
                            <ControlStyle Width="95%" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="外观及附件" DataField="ProductAppearance">
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="10%" />
                            <ControlStyle Width="95%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="购买时间">
                            <ItemTemplate>
                                <%#(Convert.ToDateTime(Eval("ProductPurchaseDateTime"))).ToString("yyyy-MM-dd")%>
                            </ItemTemplate>
                            <ItemTemplate>
                                <%#(Convert.ToDateTime(Eval("ProductPurchaseDateTime"))).ToString("yyyy-MM-dd")%>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="10%" />
                            <ControlStyle Width="95%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="保修性质">
                            <ItemTemplate>
                                <%#Eval("ProductRepairType")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:DropDownList ID="repairTypeDropDownList" runat="server">
                                    <asp:ListItem Text="保内"></asp:ListItem>
                                    <asp:ListItem Text="保外"></asp:ListItem>
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <HeaderStyle Wrap="False" Width="7%" />
                            <ItemStyle Wrap="False" Width="7%" />
                            <ControlStyle Width="95%" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr style="height: 10px;">
            <td colspan="6">
            </td>
        </tr>
        <%--<tr style="height: 25px;" align="center">
            <td colspan="6" valign="middle">
                <asp:Button ID="SaveButton" runat="server" Text="确认以上内容并分配RMA#" Height="20px" OnClick="updateLinkButton_Click" />                
            </td>
        </tr>--%>
    </table>
    <!--endprint-->
</asp:Content>
